<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
     <script>  
          
  
            function valid(form)  
            {  
                if((document.form.user.value)=="student" && (document.form.pass.value)=="felight")  
                {  
                  alert("Access ur Account");  
                  document.form.user.focus(); 
                  document.form.pass.focus();
                  return true;  
                }  
                else
                {  
                  alert("Invalid User"); 
                  document.form.user.focus();
                  document.form.pass.focus();  
                  return false;  
                }  
            }  
        </script>  
        <script type="text/javascript" src="rememberMe.js"></script>  
    </head>  

 <body bgcolor="#999945">                
       <form name="form" action="Logindb" method="post" onsubmit="return valid(this);" >  
         <table border="0" cellpadding="0" cellspacing="3" align="center" width="400">  
                  <tr colspan=2 width="270" align="center">  
                     <font size=6 color="white">LOGIN</font>  
                  </tr>  
          <tr>  
            <td width="170" align="right">  
              Username:     
            </td>  
            <td width="290">  
             <input size="30" type="text" name="user" id="user">  
            </td>  
  
          </tr>  
          <tr>  
            <td width="170" align="right">  
              Password:     
            </td>  
            <td width="290">  
             <input size="30" type="password" name="pass" id="pass">  
            </td>  
          </tr>  
          <tr>  
            <td width="170" align="right">  
              Remember me?:     
            </td>  
            <td width="290">  
             <input type="checkbox" id="checker" name="checker">  
            </td>  
          </tr>  
          <tr>  
            <td colspan="2" align="center">  
              <input type="submit" value="Submit"  >  
            </td>  
          </tr>  
                  
         </table> 
      </form>    
                  
</body>
</html>